#pragma once
#include <SDL.h>
#include "Sprite.h"


class ParallaxBackground : public Sprite
{
public:
	ParallaxBackground(int, int);
	~ParallaxBackground(void);

	SDL_Texture * layer1;
	SDL_Rect l1DstRect;
	SDL_Rect l1SrcRect;

	SDL_Texture * sky;
	SDL_Rect skyDstRect;
	SDL_Rect skySrcRect;

	SDL_Texture * clouds;
	SDL_Rect l3DstRect;
	SDL_Rect l3SrcRect;

	void Update();
	void Move(int x = 0, int y = 0);
	static ParallaxBackground* GetInstance();

private:
	static ParallaxBackground* instance;
};
